From: Jan Beulich Date: Thu, 16 May 2019 11:41:39 +0000 (+0200) Subject: AMD/IOMMU: don't open-code for_each_amd_iommu() X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2237 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=e49fc30455dfe31b9b6678501b960957753939a6;p=xen.git AMD/IOMMU: don't open-code for_each_amd_iommu() Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Acked-by: Andrew Cooper --- diff --git a/xen/drivers/passthrough/amd/iommu_intr.c b/xen/drivers/passthrough/amd/iommu_intr.c index dad2d1e5ab..da3c3c1a44 100644 --- a/xen/drivers/passthrough/amd/iommu_intr.c +++ b/xen/drivers/passthrough/amd/iommu_intr.c @@ -503,7 +503,7 @@ static struct amd_iommu *_find_iommu_for_device(int seg, int bdf) { struct amd_iommu *iommu; - list_for_each_entry ( iommu, &amd_iommu_head, list ) + for_each_amd_iommu ( iommu ) if ( iommu->seg == seg && iommu->bdf == bdf ) return NULL;